package com.sc.nft.controller.request;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.sc.nft.enums.OrderStatusEnum;
import com.sc.nft.sup.PageRequest;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
public class OrderStatusPageRequest extends PageRequest {
    @ApiModelProperty(value = "订单类型：1.买入订单 2.卖出订单 3.失效订单")
    @NotNull(message = "订单类型不正确")
    @Range(min = 1, max = 3 ,message = "订单类型不正确")
    private Integer orderType;


    @ApiModelProperty(value = "年月")
    @JsonFormat(pattern = "yyyy-MM",timezone = "GMT+8")
    private Date yearMonth;



}
